package micro.service.userMeun;

/*import net.sf.json.JSONObject;*/

/*import net.sf.json.JSONObject;*/

import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

public class ResponseUtil {
/*    public static void writeToJSON(HttpServletResponse response, Object o)throws Exception{
//        response.setCharacterEncoding("text/html;charset=utf-8");
        PrintWriter pw = response.getWriter();
        System.out.println("进入副本");
        //只有net.sf.json中的JSONObject对象才有fromObject()这个方法
        JSONObject jsonObject = JSONObject.fromObject(o);

        //System.out.println(o.toString());
        pw.print(jsonObject);
        pw.flush();
        pw.close();
    }
}*/
}

